#ifndef __PLAYERTANK_H__
#define __PLAYERTANK_H__

#include <map>
#include <string>
#include "Tank.hpp"
#include "InputEvent.hpp"
#include "PhysicEngine.hpp"

class PlayerTank : public Tank
{
	public :
	
		PlayerTank();

		void update();
		void hasBeenHit(const std::string& type);
		
	private:
		std::map<std::string,InputEvent> m_events;
	
		unsigned int computeIndexCannon(const sf::Vector2i& posMouse);	
		bool checkCollision(const std::string& way, const b2Vec2 &direction);
};

#endif /* __PLAYERTANK_H__ */

